<?php

namespace app\popo\vo;

use app\popo\BaseVO;

/**
 * 销量排名TOP10统计VO
 */
class SalesTop10ReportVO extends BaseVO
{
    /**
     * 商品名称列表，以逗号分隔，例如：鱼香肉丝,宫保鸡丁,麻婆豆腐
     */
    public string $nameList;

    /**
     * 销量列表，以逗号分隔，例如：260,215,200
     */
    public string $numberList;

    public function getNameList(): string
    {
        return $this->nameList ?? '';
    }

    public function setNameList(string $nameList): void
    {
        $this->nameList = $nameList;
    }

    public function getNumberList(): string
    {
        return $this->numberList ?? '';
    }

    public function setNumberList(string $numberList): void
    {
        $this->numberList = $numberList;
    }

    public function toArray(): array
    {
        return [
            'nameList' => $this->nameList ?? '',
            'numberList' => $this->numberList ?? ''
        ];
    }
}